/*
 * All rights Reserved, Designed By Yealink
 * Copyright (c) 2018/1/18 by Yealink
 *
 * @author yl1633
 * Createdate:  2018/1/18 10:55
 */
package com.xx.chat_room.netty;

import org.apache.commons.lang.exception.ExceptionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * 注解式随spring启动
 *
 * @author fanjj
 * @date 2018/1/18
 */
@Service
public class ChatServerInit {
    private static Logger logger = LoggerFactory.getLogger(ChatServerInit.class);

    @PostConstruct
    public void initNetty() {
        logger.info("initNetty");
        try {
//            execShell("sh /usr/local/apollo/tomcat_soft_mcu/webapps/ROOT/WEB-INF/classes/shell/chat_room.sh ");
        } catch (Exception e) {
            logger.error(ExceptionUtils.getStackTrace(e));
        }
    }
}